package com.atguigu.springcloudalibaba.myHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * 解耦合
 * 兜底方法全部都拿到一个类中统一管理
 */
public class ConsumerBlockHandler {

    public static CommonResult exception(BlockException blockException){
        return new CommonResult(4444,"按客户自定义方法进行兜底方法的选择"+"\t"+"-----1");
    }

    public static CommonResult exception2(BlockException blockException){
        return new CommonResult(4444,"按客户自定义方法进行兜底方法的选择"+"\t"+"-----2");
    }
}
